// 根据id删除标准图片
const cloud = require('wx-server-sdk');
cloud.init({
  env:cloud.DYNAMIC_CURRENT_ENV
});
const db = cloud.database();
exports.main = async (event, context) => {
  try {
    return await db.collection('standPhoto').where({
      _id:event.id
    }).remove();
  } catch (error) {
    return error;
    // return {
    //   code:500,
    //   msg:error
    // }
  }
  
}